import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      badgeType: 'dot',
      icon: 'lucide:triangle-alert',
      order: -1,
      title: '网络告警',
    },
    name: 'Warnings',
    path: '/warnings',
    children: [
      {
        name: 'Fwcheck',
        path: '/fwcheck',
        component: () => import('#/views/warnings/fwcheck/index.vue'),
        meta: {
          badgeType: 'dot',
          affixTab: true,
          icon: 'lucide:octagon-alert',
          title: '固件告警',
        },
      },
      {
        name: 'Eccheck',
        path: '/eccheck',
        component: () => import('#/views/warnings/eccheck/index.vue'),
        meta: {
          badgeType: 'dot',
          affixTab: true,
          icon: 'lucide:link-2-off',
          title: '转发表告警',
        },
      },
      {
        name: 'TempCheck',
        path: '/tempcheck',
        component: () => import('#/views/warnings/temp/index.vue'),
        meta: {
          badgeType: 'dot',
          affixTab: true,
          icon: 'lucide:thermometer',
          title: '高温告警',
        },
      },
      {
        name: 'SmCheck',
        path: '/smcheck',
        component: () => import('#/views/warnings/sm/index.vue'),
        meta: {
          badgeType: 'dot',
          affixTab: true,
          icon: 'lucide:air-vent',
          title: '子网管理器告警',
        },
      },
    ],
  },
];

export default routes;
